<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.bluesky.dreamer.entity.LoginMessage"%>
<%
String path = request.getContextPath();
LoginMessage login=(LoginMessage)request.getSession().getAttribute("loginsession");
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../../nresources/default/css/portalet.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path %>/common/page/js/jquery.js"></script>
<script src="<%=path %>/common/My97DatePicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<SCRIPT LANGUAGE="JavaScript"> 
	function productUpdate(){
		var productName=$("#productNameId").val(); //产品名称
		var productSalePrice=$("#productSalePriceId").val(); //产品出货价
		if(productName==''){
			alert("请输入产品名称!");
			$("#productNameId").focus();
			return false;
		}else if(productSalePrice==''){
			alert("请输入产品出货价!");
			$("#productSalePriceId").focus();
			return false;
		}
		$("#productpolicyformId").submit();
	}
</SCRIPT>
</head>
<body>
<!-- 表单 Start -->
<DIV id="Operation_Table">
	<div class="title">
		<div class="titleleft">产品策略-修改</div>
		<!-- 表单title -->
	</div>
	<!-- 表单title -->
	<!-- 表单内容 Start-->
	<div id="Info_table">
		<form action="productpolicy!update.do" name="productpolicyform" id="productpolicyformId" method="post">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<th>产品名称:</th>
					<td>
					  <input type="text" name="productName" id="productNameId" width="70%" value="${model.productName}">
					  <input type="hidden" name="id" width="70%" value="${model.productId}">
	               </td>
	               <th>产品出货价:</th>
					<td>
					  <input type="text" name="productSalePrice" id="productSalePriceId" width="70%" value="${model.productSalePrice}">
	               </td>
				</tr>
				<tr>
					<th>本地市话:</th>
					<td>
					  <input type="text" name="localNormalPrice" id="localNormalPriceId" width="70%" value="${model.localNormalPrice}">
	               </td>
	               <th>本地长途:</th>
					<td>
					  <input type="text" name="localLongPrice" id="localLongPriceId" width="70%" value="${model.localLongPrice}">
	               </td>
				</tr>
				<tr>
					<th>省内接听:</th>
					<td>
					  <input type="text" name="provinceInAnswer" width="70%" value="${model.provinceInAnswer}">
	               </td>
	               <th>省内主拨:</th>
					<td>
					  <input type="text" name="provinceInCall" width="70%" value="${model.provinceInCall}">
	               </td>
				</tr>
				<tr>
					<th>省外接听:</th>
					<td>
					  <input type="text" name="provinceOutAnswer" width="70%" value="${model.provinceOutAnswer}">
	               </td>
	               <th>省外主拨:</th>
					<td>
					  <input type="text" name="provinceOutCall" width="70%" value="${model.provinceOutCall}">
	               </td>
				</tr>
				<tr>
					<th>产品描述信息：</th>
					<td colspan="3">
					<textarea name="productDesc" cols="45" rows="2" >
						${model.productDesc}
					</textarea>
				    (限定字数：1000)</td>
	            </tr>
			</table>
		</form>
	</div>
	<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
		<!-- 按扭背景 start -->
		<tr>
		  <td width="30" align="center" id="footer">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="提交" onclick="productUpdate()">
		  </td>
		</tr>
		<!-- 按扭背景 end -->
	</table>
	<!-- 表单内容 End -->
</DIV>
</body>
</html>
